const express = require("express");
const exApp = express();
const cors = require("cors");
const path = require("path");
exApp.use(express.json());

let pomsql = require("./connect/pomsql")
exApp.use(express.urlencoded({ extended: false })); // 表单请求
exApp.use(cors()); // 跨域
exApp.use(express.static(path.join(__dirname, "../serve")))



exApp.listen(8888, () => console.log(`启动成功:http://localhost:8888/`));



module.exports = exApp
require("./routes/publish")
require('./routes/index')
require('./routes/a.js')

